home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / the_guarded_garden.swf / scripts / DefineButton2_103 / BUTTONCONDACTION on(press).as
Text File  |  2011-01-13  |  3KB  |  111 lines

  1. on(press){
  2.    var ┬º\x01┬º = 587;
  3.    while(true)
  4.    {
  5.       if(eval("\x01") == 587)
  6.       {
  7.          set("\x01",eval("\x01") + 2);
  8.          ┬º┬ºpush(true);
  9.       }
  10.       else if(eval("\x01") == 374)
  11.       {
  12.          set("\x01",eval("\x01") + 559);
  13.       }
  14.       else
  15.       {
  16.          if(eval("\x01") == 93)
  17.          {
  18.             set("\x01",eval("\x01") + 233);
  19.             _root.SFX.gotoAndPlay("Click");
  20.             var match = false;
  21.             var i = 0;
  22.             while(i < _root.cheatCodes.length)
  23.             {
  24.                var theCode = _root.cheatCodes[i];
  25.                if(_root.codeInput == theCode)
  26.                {
  27.                   match = true;
  28.                   break;
  29.                }
  30.                i++;
  31.             }
  32.             if(match == true)
  33.             {
  34.                gotoAndStop("Valid");
  35.                play();
  36.                _root.funcHITBOX("misc","valid_code_" + _root.codeInput);
  37.             }
  38.             else
  39.             {
  40.                gotoAndStop("Invalid");
  41.                play();
  42.             }
  43.             break;
  44.          }
  45.          if(eval("\x01") == 86)
  46.          {
  47.             set("\x01",eval("\x01") + 7);
  48.          }
  49.          else if(eval("\x01") == 949)
  50.          {
  51.             set("\x01",eval("\x01") - 16);
  52.          }
  53.          else
  54.          {
  55.             if(eval("\x01") == 807)
  56.             {
  57.                set("\x01",eval("\x01") + 168);
  58.                gotoAndStop("-∩┐╜∩┐╜ \x04\x02 ");
  59.                break;
  60.             }
  61.             if(eval("\x01") == 696)
  62.             {
  63.                set("\x01",eval("\x01") - 610);
  64.             }
  65.             else
  66.             {
  67.                if(eval("\x01") == 638)
  68.                {
  69.                   set("\x01",eval("\x01") + 311);
  70.                   break;
  71.                }
  72.                if(eval("\x01") == 326)
  73.                {
  74.                   set("\x01",eval("\x01") - 326);
  75.                   break;
  76.                }
  77.                if(eval("\x01") == 455)
  78.                {
  79.                   set("\x01",eval("\x01") + 352);
  80.                   if(┬º┬ºpop())
  81.                   {
  82.                      set("\x01",eval("\x01") + 168);
  83.                   }
  84.                }
  85.                else if(eval("\x01") == 589)
  86.                {
  87.                   set("\x01",eval("\x01") + 49);
  88.                   if(┬º┬ºpop())
  89.                   {
  90.                      set("\x01",eval("\x01") + 311);
  91.                   }
  92.                }
  93.                else if(eval("\x01") == 933)
  94.                {
  95.                   set("\x01",eval("\x01") - 478);
  96.                   ┬º┬ºpush(true);
  97.                }
  98.                else
  99.                {
  100.                   if(eval("\x01") != 975)
  101.                   {
  102.                      break;
  103.                   }
  104.                   set("\x01",eval("\x01") - 889);
  105.                }
  106.             }
  107.          }
  108.       }
  109.    }
  110. }
  111.